import { createWebHistory, createRouter } from 'vue-router'
import login from '../vitws/login.vue'
import homea from '../vitws/home/homea.vue'
import Homeb from '../vitws/home/homeb.vue'
import Homec from '../vitws/home/homec.vue'
import Homed from '../vitws/home/homed.vue'
import Homee from '../vitws/home/homee.vue'
const routes = [
    { path: '/', redirect: '/homea' },
    { path: '/login', component: login },
    {
        path: '/homea', component: homea,
        children: [
            { path: 'homeb', component: Homeb },
            { path: 'homec', component: Homec },
            { path: 'homed', component: Homed },
            { path: 'homee', component: Homee },
        ]
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})
export default router